package com.kylinhunter.ch.plugin.knowledgebase.service;

import java.io.File;
import java.util.List;
import java.util.Set;

 
import com.kylinhunter.ch.plugin.knowledgebase.dao.Chcode;
import com.kylinhunter.ch.plugin.knowledgebase.dao.Chkbfile;
import com.kylinhunter.exception.KHException;

public interface KBService extends Service {
public void addDirectory( Chcode directory ) throws KHException;
public String getFilePath(String fileID)throws KHException;
public File getFileByFileID( String fileID ) throws KHException;
public String getDirectoryPath(String directoryID)throws KHException;
public File getDirectoryByID( String directoryID ) throws KHException;
public void delDirectory( Chcode chcode )throws KHException; 
public void modifyFileType( Chcode chcode )throws KHException;
public void updateDirectoryName(String directoryId,String directoryName) throws KHException ;
public Chcode getDirectory( String directory )throws KHException;
public List<Chcode>  getDirectoryByExample(Chcode directory)throws KHException;
public List <Chcode> findAllFileTypeByPage(int pageNo, int user_page_size,boolean paging,Chcode chcode,String orderString,boolean vague)throws KHException;
 

public void addFile ( Chkbfile chkbfile ,String direcotry) throws KHException;
public void updateFileName(String fileId,String fileName) throws KHException;
public Chkbfile getFile(String fileId) throws KHException;
public void addFile ( Chkbfile chkbfile ) throws KHException;
public void delFile ( Chkbfile chkbfile )throws KHException;
public void modifyFile ( Chkbfile chkbfile )throws KHException;
public Chkbfile viewFile( Chkbfile chkbfile )throws KHException;
public List <Chkbfile>viewALLFile(Chkbfile chkbfile)throws KHException;
public Set<Chkbfile> getAllFileByDirectory( Chcode directory)throws KHException;
public List <Chkbfile> findAllFileByPage(int pageNo, int user_page_size,boolean paging,Chkbfile chkbfile,String orderString,boolean vague)throws KHException;




 
}
